<!--收货单-->
<template>
    <div>
        <el-form label-width="100px" :inline="true" class="formsdre jichu">
            <el-form-item label="收货单号："> 
                <el-input v-model="csk.code"></el-input>
            </el-form-item>
            <el-form-item label="收货方："> 
                <el-input v-model="csk.receiver"></el-input>
            </el-form-item>
            <el-form-item>
                <div class="jjnnjxet">
                    <el-button type="primary" class="ml10" icon="el-icon-search" @click="getlist">查询</el-button>
                    <el-button type="warning" class="ml10" icon="el-icon-refresh-right" @click="congzhibtn">重置</el-button>
                </div>
            </el-form-item>
        </el-form>
        <div class="mt10 row">
            <el-button-group>
                <el-button icon="el-icon-plus" >新增</el-button>
            </el-button-group>
            <div class="col tr">
                <el-button-group>
                    <el-button icon="dx icon-daoru mr10 fz16" @click="isshow">导入</el-button>
                    <el-button icon="dx icon-daochu mr10 fz16" :disabled="iszj">导出</el-button>
                    <el-button icon="el-icon-download fz16">下载导入模板</el-button>
                </el-button-group>
            </div>
        </div>
        <el-table :data="tableData" class="mt20 fz12 fdgdyuyeer" border @selection-change="handleSelectionChange" style="width: 100%" :height="clientHeight-280" v-loading="loading"   element-loading-text="拼命加载中...">
            <el-table-column type="selection" width="55" align="center">
            </el-table-column>
            <el-table-column type="index" width="50" label="序号" align="center">
            </el-table-column>
            <el-table-column prop="id" width="140" label="" align="center"></el-table-column>
            <el-table-column prop="code" label="收货单号" align="center" width="160">
                <template slot-scope="scope">
                    <span class="ls sz" @click="hf('particulars',scope.row)">{{scope.row.code}}</span>
                </template>
            </el-table-column>
            <el-table-column prop="deliveryOrderId" width="140" label="发货单ID" align="center"></el-table-column>
            <el-table-column prop="deliveryOrderCode" label="发货单号" align="center"></el-table-column>
            <el-table-column prop="status" label="状态" align="center"></el-table-column>
            <el-table-column prop="ownerCode" label="货主编码" width="160" align="center"></el-table-column>
            <el-table-column prop="planDeliveryTime" label="计划发货时间" align="center" width="140"></el-table-column>
             <el-table-column prop="receiver" label="收货方" align="center" width="140"></el-table-column>
            <el-table-column prop="receiveAddress" label="收货地址" align="center" width="140"></el-table-column>
            <el-table-column prop="receiveContact" label="收货联系人" align="center" width="140"></el-table-column>
            <el-table-column prop="receiveTel" label="收货联系电话" align="center" width="120"></el-table-column>
            <el-table-column prop="" label="备注" align="center" width="120"></el-table-column>
            <el-table-column prop="companyCode" label="公司编码" align="center" width="120"></el-table-column>
        </el-table>
        <div class="pt10 pm10 btm cen fdrtrter row listpage">
            <div>
                <el-button-group>
                    <el-button icon="el-icon-edit-outline" :disabled="iszj">批量执行</el-button>
                    <el-button icon="el-icon-refresh" :disabled="iszj">批量取消</el-button>
                </el-button-group>
            </div>
            <div class="col tr">
                <el-pagination background :page-sizes="[10,15,20,30,50]" :page-size="20" layout="total, sizes, prev, pager, next, jumper" :total="total" @size-change="sizechange" @current-change="currentChange">
                </el-pagination>
            </div>
        </div>
        <ImportXhl ref="daoru"></ImportXhl>
    </div>
</template>
<script>
    import ImportXhl from '@/components/util/ImportXhl'
    import mixins from '@/mixins'
    export default {
        data() {
            return {
                urls: '/oms/order/receipt/pageInfo',
                csk: {
                    code:'',// 发运订单号
                    receiver:'',//  收货方
                    page: 1,
                    limit: 20
                },
                iszj: true
            }
        },
        components: {
            ImportXhl
        },
        mixins: [mixins.tableCz],
        computed: {
            clientHeight() {
                return this.$store.state.clientHeight;
            }
        },
        methods: {
            handleSelectionChange(e) {
                if (e.length > 0) {
                    this.iszj = false
                } else {
                    this.iszj = true
                }
            },
            isshow() {
                this.$refs.daoru.isjd()
            }
        },
        mounted() {

        }
    }

</script>
<style scoped>

</style>
